dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
01a7957
)
* (bug 1163) Special:Undelete showed oldest revision instead of newest
author
Brion Vibber
<brion@users.mediawiki.org>
Thu, 21 Apr 2005 07:26:52 +0000
(07:26 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Thu, 21 Apr 2005 07:26:52 +0000
(07:26 +0000)
Patch from bug with slight modification (include the limit; if there are
many we only want one here)
includes/SpecialUndelete.php
patch
|
blob
|
history
diff --git
a/includes/SpecialUndelete.php
b/includes/SpecialUndelete.php
index
e4b34b2
..
4a3c9af
100644
(file)
--- a/
includes/SpecialUndelete.php
+++ b/
includes/SpecialUndelete.php
@@
-97,7
+97,8
@@
class PageArchive {
array( 'ar_namespace' => $this->title->getNamespace(),
'ar_title' => $this->title->getDBkey() ),
'PageArchive::getLastRevisionText',
- 'ORDER BY ar_timestamp DESC LIMIT 1' );
+ array( 'ORDER BY' => 'ar_timestamp DESC',
+ 'LIMIT' => '1' ) );
if( $row ) {
return Revision::getRevisionText( $row, "ar_" );
} else {